import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import router from './router/router.js'
import {createPinia} from "pinia"

const app = createApp(App)
const pinia=createPinia()
app.use(pinia)
app.use(ElementPlus) // 全局注册 Element Plus 及其组件
app.use(router)
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}